package cn.stylefeng.guns.modular.file.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 文件管理
 * </p>
 *
 * @author rebiekong
 * @since 2019-10-20
 */
@TableName("file")
public class File implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 文件类型
     */
    @TableField("file_type")
    private Integer fileType;

    /**
     * 文件名
     */
    @TableField("file_name")
    private String fileName;

    /**
     * 最新文件版本
     */
    @TableField("latest_file_version")
    private Integer latestFileVersion;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getFileType() {
        return fileType;
    }

    public void setFileType(Integer fileType) {
        this.fileType = fileType;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public Integer getLatestFileVersion() {
        return latestFileVersion;
    }

    public void setLatestFileVersion(Integer latestFileVersion) {
        this.latestFileVersion = latestFileVersion;
    }

    @Override
    public String toString() {
        return "File{" +
        "id=" + id +
        ", fileType=" + fileType +
        ", fileName=" + fileName +
        ", latestFileVersion=" + latestFileVersion +
        "}";
    }
}
